<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>生成二维码</h2>
    </div>
    
    <form action="{:U('doGen')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">所属分类</label>
            <div class="controls">
               <select name="qrcode_category_id">
               	<option value="0">请选择</option>
               	<volist name="cates" id="vo">
                    <option value="{$vo.id}">{$vo.title}</option>
                </volist>
               </select>
               </label>                    
            </div>   
        </div>
        
        <div class="form-item">
            <label class="item-label">所属学校</label>
            <div class="controls">
               <select name="school_id">
               	<option value="0">请选择</option>
               	<volist name="schoolList" id="vo">
                    <option value="{$vo.id}">{$vo.title}</option>
                </volist>
               </select>
               </label>                    
            </div>   
        </div>
        
	    <div class="form-item">
	    	<label class="item-label">名称</label>
	        <input type="text" class="text input-middle" name="title" />
        </div>
	
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal" onClick="if(confirm('生成后原二维码将失效，确认操作吗?')){return true;}else {return false;}">确定生成</button>
            <a class="btn btn-return">预览</a>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Qrcode/gen')}');
    </script>
</block>
